package org.cuatrovientos.erp.model;

import javax.validation.constraints.Min;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Pattern;
import javax.validation.constraints.Size;
/**
 * 
 * @author CaselHunter
 *
 */
public class Country {
@Min(value=1,message="{country.id.error}")	
private int id;

@NotNull(message="{country.name.error}")
 private String name;

@NotNull(message="{country.abbreviation.error}")
 private String abbreviation;

public Country(){
	
}
public Country(int id, String name, String abbreviation) {
	super();
	this.id = id;
	this.name = name;
	this.abbreviation = abbreviation;
}
public int getId() {
	return id;
}
public void setId(int id) {
	this.id = id;
}
public String getName() {
	return name;
}
public void setName(String name) {
	this.name = name;
}
public String getAbbrevation() {
	return abbreviation;
}
public void setAbbrevation(String abbreviation) {
	this.abbreviation = abbreviation;
}
@Override
public String toString() {
	return "Country [id=" + id + ", name=" + name + ", abbreviation="
			+ abbreviation + "]";
}


}